//
//  SAViewControllerProtocol.h
//  GoldBook
//
//  Created by wmz on 2021/8/15.
//  Copyright © 2021 wmz. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, SAViewControllerShowType) {
    SAViewControllerShowTypePush = 0,
    SAViewControllerShowTypePresent
};

typedef NS_ENUM(NSUInteger, SAViewControllerNaviType) {
    SAViewControllerNaviTypeNormal = 0,         ///常规导航栏
    SAViewControllerNaviTypeHide = 1,           ///导航栏隐藏
    SAViewControllerNaviTypeCustomColor = 2,    ///自定义导航栏颜色
};

@protocol SAViewControllerProtocol <NSObject>

@required
///导航栏样式
- (SAViewControllerNaviType)customNaviType;
///透明度
- (BOOL)naviTranslate;

@optional
///执行一些U操作
- (void)hd_setupViews;
///绑定数据
- (void)hd_bindViewModel;
///获取数据
- (void)hd_getNewData;
///自定义导航栏操作
- (void)hd_setupNavigation;
///viewWill获取数据
- (void)hd_getWillData;

/// 是否需要登录，默认 YES
- (BOOL)needLogin;
- (UIColor*)customNaviColor;
- (BOOL)customNaviLineHidden;
- (BOOL)enableKey;

/// 重新获取数据最小间隔，默认 10 秒（设为-2则不会再次获取）
@property (nonatomic, assign) NSTimeInterval miniumGetNewDataDuration;

@end


NS_ASSUME_NONNULL_END
